<div class="form-group">
    <label class="col-sm-2 control-label Validform_label">表单布局</label>
    <div class="col-sm-4">
        <label class="radio-inline i-checks">
            <input type="radio" name="set[layout]" value="2"
                   {eq name="info.set.layout" value="2" }checked{/eq}/> 双列
        </label>
        <label class="radio-inline i-checks">
            <input type="radio" name="set[layout]" value="1"
                   {eq name="info.set.layout" value="1" }checked{/eq}/> 单列
        </label>
    </div>
    <label class="col-sm-2 control-label Validform_label">表单长度</label>
    <div class="col-sm-4">
        <input type="text" class="form-control" placeholder="请输入表单长度"
               name="set[size]" value="{$info.set.size}"/>
    </div>
</div>

<div class="form-group">
    <label class="col-sm-2 control-label Validform_label">执行SQL</label>
    <div class="col-sm-10">
        <input type="text" readonly name="set[fieldsql]" class="form-control" id="fieldsql" value="{$info.set.fieldsql}"/>
    </div>
</div>

<div class="form-group">
    <label class="col-sm-2 control-label Validform_label">自定义方法</label>
    <div class="col-sm-10">
        <input type="text" name="set[custom]" class="form-control" value="{$info.set.custom}"/>
    </div>
</div>

<script>
    $("#custom-field-type").change(function () {
        var fieldsql = $(this).val();
        $('#fieldsql').val(fieldsql);
    });
    $("#custom-field-type").trigger("change"); //加载触发
    iCheck();
</script>
